//package com.example.thymeleaf.config;
//
//
//import com.example.thymeleaf.web.Interceptor.AuthorizationInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @Description: TODO
// * @author: 李展鹏
// * @date: 2024年06月01日9:55
// * 把拦截器给BOOT管理
// */
//@Configuration
//public class InterceptorConfig implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        String[] pathPatterns={"/dev/*"};//拦截规则
//        String[] excludePathPatterns={"/dev/toLogin"};//排除拦截的路径
//        registry.addInterceptor(new AuthorizationInterceptor())//注册拦截
//                .addPathPatterns(pathPatterns)//添加路径规则
//                .excludePathPatterns(excludePathPatterns);
//    }
//}
